﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace calculadora
{
    public class Fatorial:OP
    {
        public Fatorial(Double x) : base(x) { }
        public Fatorial(){ }
        public override Double result()
        {
            Double aux = a;
            for (int i = ((int)a)-1; i > 0; i--) {
                aux *= i;
            }
            return aux;
        }
    }
}
